package Com.amit.IO;

import java.io.FileInputStream;

import java.io.FileOutputStream;


public class Lab3 {
	
	public static void main(String[] args) throws Exception {
		
		FileInputStream fin=new FileInputStream("C:\\Users\\NETA JEE\\Desktop\\amit.txt");
		
		FileOutputStream fout=new FileOutputStream("C:\\Users\\NETA JEE\\Desktop\\M.txt");
		
		int i=0;
		
		while((i=fin.read())!=-1)
		{
			fout.write((byte)i);
		}
		
		
		fin.close();
		
	}

}
